package com.springcloud.sc.ucp.v5.api.feign;

import com.springcloud.sc.comm.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "ucpRemoteDeptService", value = ServiceNameConstants.UCP_SERVICE_V5)
public interface UcpRemoteDeptService {

    @RequestMapping(value = "/dept/saveDeptAPI" , method = RequestMethod.POST)
    Boolean saveDeptAPI(@RequestParam("name") String name, @RequestParam("id") String id, @RequestParam("parentId") String parentId, @RequestParam("systemId") String systemId);

    @RequestMapping(value = "/dept/updateDeptAPI" , method = RequestMethod.POST)
    Boolean updateDeptAPI(@RequestParam("name") String name, @RequestParam("id") String id);
    @RequestMapping(value = "/dept/deleteDeptAPI" , method = RequestMethod.POST)
    Boolean deleteDeptAPI(@RequestParam("id") String id);

}
